package com.restaurant.application.reservation.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.indexes.reservationlist.mysql.ReservationListBean;
import com.restaurant.application.minifacade.data.ReservationPageBO;
import com.restaurant.application.reservation.Reservation;

public class ReservationOutFace implements Reservation {
    private ReservationBase base;

    public ReservationOutFace(ReservationBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public String update(ReservationData arg0) {
        return (String)base.call("update", arg0);
    }

    @Override
    public String init(ReservationData arg0) {
        return (String)base.call("init", arg0);
    }

    @Override
    public String cancel() {
        return (String) base.call("cancel");
    }

    @Override
    public ReservationPageBO getReservationBean() {
        return (ReservationPageBO) base.call("getReservationBean");
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View) base.call("getViewLead", arg0);
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }

    @Override
    public ReservationListBean getReservationUidDataForReservationList(ReservationListBean arg0) {
        return (ReservationListBean)base.call("getReservationUidDataForReservationList", arg0);
    }
}
